package cn.tedu.carehome.foundation.service;

import cn.tedu.carehome.foundation.ex.ServiceException;
import cn.tedu.carehome.foundation.pojo.dto.BedAddNewDTO;
import cn.tedu.carehome.foundation.pojo.dto.BedUpdateDTO;
import cn.tedu.carehome.foundation.pojo.entity.Bed;
import cn.tedu.carehome.foundation.pojo.vo.BedAdminListVO;
import cn.tedu.carehome.foundation.pojo.vo.BedAdminStandardVO;
import cn.tedu.carehome.foundation.pojo.vo.BedAdminUpdateStandardVO;
import cn.tedu.carehome.foundation.pojo.vo.BedStaffVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = ServiceException.class)
public interface IBedService {
    void  addNew(BedAddNewDTO bedAddNewDTO);

    List<BedAdminListVO> list(int floor);

    List<Integer> StandarFloor();

    void deleteByid(Long id);

    void deleteBycheckId(Long checkId,Long id);

    BedAdminStandardVO getStandardByid(Long id);

    BedAdminUpdateStandardVO upStandarByid(Long id);

    List<BedStaffVO> staffList();

    void update(BedUpdateDTO bedUpdateDTO);
}
